package com.icongyou.enterprise.talent_analysis.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

import java.util.List;

/**
 * 模板变更事件
 * 当HR用户切换模板或模板配置更新时触发
 */
@Getter
public class TemplateChangeEvent extends ApplicationEvent {
    
    private final String hrUserId;
    private final String enterpriseId;
    private final String oldTemplateId;
    private final String newTemplateId;
    private final List<String> affectedStudentIds; // 受影响的学生ID列表
    
    public TemplateChangeEvent(
        Object source, 
        String hrUserId,
        String enterpriseId,
        String oldTemplateId, 
        String newTemplateId,
        List<String> affectedStudentIds
    ) {
        super(source);
        this.hrUserId = hrUserId;
        this.enterpriseId = enterpriseId;
        this.oldTemplateId = oldTemplateId;
        this.newTemplateId = newTemplateId;
        this.affectedStudentIds = affectedStudentIds;
    }
}
